/**   
* @Title: RoleUser.java 
* @Package com.csis.security.domain 
* @Description: TODO
* @author dailey  
* @date 2012-9-27
* @version V1.0   
*/
package com.csis.security.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import static com.csis.system.common.IStaticData.*;

/**
 * @author dailey
 *
 */
@Entity
@Table(name = TABLE_ROLE_USER_MAP)
public class RoleUserMap {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = COLUMN_ROLE_USER_MAP_MAPID)
	private java.lang.Integer mapId = null;
	@Column(name = COLUMN_ROLE_USER_MAP_ROLEID)
	private java.lang.Integer roleId = null;
	@Column(name = COLUMN_ROLE_USER_MAP_USERID)
	private java.lang.Integer userId = null;

	/**
	 * 
	 */
	public RoleUserMap() {
		// TODO Auto-generated constructor stub
	}

	public RoleUserMap(Integer userId, Integer roleId) {
		this.userId = userId;
		this.roleId = roleId;
	}

	public java.lang.Integer getMapId() {
		return mapId;
	}

	public void setMapId(java.lang.Integer mapId) {
		this.mapId = mapId;
	}

	public java.lang.Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(java.lang.Integer roleId) {
		this.roleId = roleId;
	}

	public java.lang.Integer getUserId() {
		return userId;
	}

	public void setUserId(java.lang.Integer userId) {
		this.userId = userId;
	}

}
